ALTER TABLE public."Appointment"
    ADD COLUMN "CubicleId" integer;

ALTER TABLE public."Appointment"
    ADD CONSTRAINT "FK_Appointment_CubicleId" FOREIGN KEY ("CubicleId")
    REFERENCES public."Cubicle" ("CubicleId") MATCH SIMPLE
    ON UPDATE NO ACTION
    ON DELETE NO ACTION;